<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <jsp:include page="../common/common.jsp"/>
    <style>
        .insurance_table {
            width: 100%;
            height: 500px;
            border: 0px solid;
        }
        .insurance_dialog{
            overflow-x: hidden; overflow-y: hidden;
        }
    </style>
    <script type="text/javascript" src="/static/js/system/insurance.js"></script>


</head>
<body>

<table id="insurance_datagrid"></table>

<div id="insurance_toolbar">
    <%--<a class="easyui-linkbutton" href="#" iconCls="icon-no" plain="true" data-cmd="refuse">拒保</a>--%>
    <a id="btn_state" class="easyui-linkbutton" href="#" iconCls="icon-ok" plain="true"
       data-cmd="prepareAudit">提审</a>
    <a class="easyui-linkbutton" href="#" iconCls="icon-edit" plain="true" data-cmd="edit">编辑</a>
    <a class="easyui-linkbutton" href="#" iconCls="icon-reload" plain="true" data-cmd="reload">刷新</a>
        <input class="easyui-textbox" id="keyword" name="keyword" data-options="prompt:'投保人'"/>
        <input class="easyui-textbox" id="sn" name="sn" data-options="prompt:'保单编号'"/>
        <a class="easyui-linkbutton" iconCls="icon-search" plain="true" data-cmd="query">查询</a>

</div>
<%--弹出框按钮--%>
<div id="buttons">
    <a class="easyui-linkbutton" iconCls="icon-save" plain="true" data-cmd="save">保存</a> <a
        class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="cancel">取消</a>
</div>

<div id="insurance_dialog" class="insurance_dialog">
    <form id="insrance_form" method="post">
        <table class="insurance_table" style="margin-left: 20px" >
            <input type="hidden" name="id"/>
            <input type="hidden" name="client.id"/>
            <input type="hidden" name="carInformation.id"/>
            <input type="hidden" name="sn"/>
            <input type="hidden" name="inputtime"/>
            <input type="hidden" name="state"/>
            <input type="hidden" name="productItem.name">
            <tr>
                <td colspan="3">
                    <h4>投保人</h4>
                </td>
            </tr>
            <tr>

                <td><input class="easyui-textbox"
                           data-options="label:'姓名',labelWidth:'70px',labelAlign:'center',width:200"
                           name="client.name"/></td>
                <td>
                    <select class="easyui-combobox"
                            data-options="label:'性别',labelWidth:'70px',labelAlign:'center',panelHeight:'auto',width:200"
                            name="client.sex">
                        <option value="1" ${client.sex == 1? 'selected':''}>男</option>
                        <option value="0" ${client.sex == 0? 'selected':''}>女</option>
                    </select>

                    <%--<input class="easyui-combobox" data-options="label:'性别',labelWidth:'70px',labelAlign:'center'"
                           name="client.sex"/>--%>
                </td>
                <td><input class="easyui-textbox"
                           data-options="label:'联系方式',labelWidth:'70px',labelAlign:'center',width:200"
                           name="client.tel"/></td>
            </tr>
            <tr>
                <td><input class="easyui-textbox"
                           data-options="label:'身份证',labelWidth:'70px',labelAlign:'center',width:200"
                           name="client.id_card"/></td>
                <td><input class="easyui-textbox"
                           data-options="label:'通讯地址',labelWidth:'70px',labelAlign:'center',width:200"
                           name="client.address"/></td>
            </tr>

            <tr>
                <td colspan="3">
                    <h4>车辆信息</h4>
                </td>
            </tr>
            <tr>
                <td><input class="easyui-textbox"
                           data-options="label:'车主姓名',labelWidth:'70px',labelAlign:'center',width:200"
                           name="carInformation.name"/></td>
                <td><input class="easyui-combobox"
                           data-options="label:'品牌',labelWidth:'70px',labelAlign:'center',width:200"
                           name="carInformation.brand"/></td>
                <td><input class="easyui-textbox"
                           data-options="label:'型号',labelWidth:'70px',labelAlign:'center',width:200"
                           name="carInformation.carType"/></td>
            </tr>
            <tr>
                <td><input class="easyui-textbox"
                           data-options="label:'车牌号码',labelWidth:'70px',labelAlign:'center',width:200"
                           name="carInformation.carNumber"/></td>
                <td><input class="easyui-textbox"
                           data-options="label:'排气量',labelWidth:'70px',labelAlign:'center',width:200"
                           name="carInformation.airVolume"/> L
                </td>
                <td>

                    <select class="easyui-combobox"
                            data-options="label:'汽车分类',labelWidth:'70px',labelAlign:'center',panelHeight:'auto',width:200"
                            name="carInformation.state">
                        <option value="1" ${carInformation.state == 1? 'selected':''}>载物</option>
                        <option value="0" ${carInformation.state == 0? 'selected':''}>载客</option>
                    </select>
                  <%--
                    <input class="easyui-combobox"
                           data-options="label:'汽车分类',labelWidth:'70px',labelAlign:'center',width:200"
                           name="carInformation.state"/>--%>
                </td>
            </tr>
            <tr>
                <td><input class="easyui-datebox"
                           data-options="label:'购置日期',labelWidth:'70px',labelAlign:'center',width:200"
                           name="carInformation.inputTime"/></td>
                <td><input class="easyui-textbox"
                           data-options="label:'市场估价',labelWidth:'70px',labelAlign:'center',width:200"
                           name="carInformation.evaluation"/> 万
                </td>
                <td>

                    <select class="easyui-combobox"
                            data-options="label:'车载大小',labelWidth:'70px',labelAlign:'center',width:200,panelHeight:'auto'"
                            name="carInformation.type">
                        <option value="小型车" ${carInformation.type == '小型车'? 'selected':''}>小型车</option>
                        <option value="大型车" ${carInformation.type == '大型车'? 'selected':''}>大型车</option>
                        <option value="超大型车" ${carInformation.type == '超大型车'? 'selected':''}>超大型车</option>
                    </select>

                   <%-- <input class="easyui-textbox"
                           data-options="label:'车载大小',labelWidth:'70px',labelAlign:'center',width:200"
                           name="carInformation.cartype"/>--%>

                </td>
            </tr>
            <hr>
            <tr>
                <td colspan="3">
                    <h4>保险产品</h4>

                </td>
            </tr>
            <tr>
                <td><input class="easyui-combobox" id="mech_combo"
                           data-options="label:'承保机构',labelWidth:'70px',labelAlign:'center',width:200,
                           url:'/mechanism/listAll.do',valueField:'id',textField:'name',panelHeight:true"
                           name="productItem.id"/>
                </td>
                <td colspan="2">
                    <a class="easyui-linkbutton" href="#" iconCls="icon-add" data-cmd="addProduct">添加产品</a>
                    <input class="easyui-textbox" id="term" name="term"/>年
                </td>
            </tr>
            <tr>
                <%----%>
                <td colspan="3">
                    <div style="height: 150px">
                        <table id="product_table"></table>
                    </div>

                </td>
            </tr>
            <tr align="center">
                <td colspan="3">
                    总计:<font color="red" id="totalMoney" style="font-size: 50px">0</font>元
                </td>
            </tr>
        </table>

    </form>
</div>

<div id="carp_dialog">
    <table id="carp_datagrid"></table>
</div>

<div id="carp_buttons">
    <a class="easyui-linkbutton" iconCls="icon-save" plain="true" data-cmd="carp_add">添加</a> <a
        class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="carp_cancel">取消</a>
</div>


<div id="product_table_button">
    <a href="#" class="easyui-linkbutton" iconCls="icon-cut" onclick="remove()">删除</a>
</div>


</body>
</html>
